package org.springblade.modules.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseService;
import org.springblade.modules.admin.dto.TaskPlanPageQueryDTO;
import org.springblade.modules.admin.dto.TaskPlanSaveDTO;
import org.springblade.modules.admin.entity.MaintainTaskPlan;
import org.springblade.modules.admin.vo.TaskPlanVO;

import java.util.List;

public interface MaintainTaskPlanService extends BaseService<MaintainTaskPlan> {

    Boolean saveTaskPlan(TaskPlanSaveDTO taskPlanSaveDTO);

    Boolean updateTaskPlan(Long id, TaskPlanSaveDTO taskPlanSaveDTO);

    IPage<TaskPlanVO> selectTaskPlanPage(TaskPlanPageQueryDTO pageQuery, IPage<TaskPlanVO> page);

    Boolean copyTaskPlan(Long id);

	TaskPlanVO selectTaskPlanDetail(Long id);

    List<TaskPlanVO> getTaskPlanSelectDown();

	List<MaintainTaskPlan> getTaskPlanByElevatorIds(List<Long> elevatorIds,String tenantId);

	MaintainTaskPlan getByIdAndTenantId(Long id,String tenantId);
}


